import request from './request'

export function filePage(data) {
  return request({
    url: '/file/page',
    method: 'post',
    data
  })
}
// export function fileDownload(id) {
//   return request({
//     url: '/file/download/' + id,
//     method: 'get',
//     responseType: 'blob',
//     params: {
//       id
//     }
//   })
// }
export function fileDownload(id) {
  return request({
    url: '/file/backUrl',
    method: 'get',
    // responseType: 'blob',
    params: {
      id
    }
  })
}
export function logicDelete(id) {
  return request({
    url: '/file/logicDelete/',
    method: 'put',
    params: {
      id:id
    }
  })
}
export function reName(data) {
  return request({
    url: '/file/reName',
    method: 'put',
    data
  })
}
export function searchByName(data) {
  return request({
    url: '/file/searchByName',
    method: 'post',
    data
  })
}
export function deleteBatch(ids)  {
  return request({
    url: '/file/logicDelBatch',
    method: 'put',
    params: {
      ids:ids
    }
  })
}